package models.vo {

  	import org.restfulx.collections.ModelsCollection;
  	import org.restfulx.models.RxModel;
  
  	[Resource(name="vistorias")]
  	
  	[Bindable]
  	public class Vistoria extends RxModel 
  	{
    	public static const LABEL				:	String = "abertura";

    	[DateTime]
    	public var abertura						:	Date;

    	[DateTime]
    	public var fechamento					:	Date;

    	public var conclusao					:	String;
    	public var analiseProcessoProdutivo		:	String;
    	public var informacoesComplementares	:	String;
    	public var dataRodape					:	Date;

    	[BelongsTo]
    	public var analise						:	Analise;

    	[BelongsTo]
    	public var analista1					:	User;

    	[BelongsTo]
    	public var analista2					:	User;

    	[HasMany]
    	public var fotos						:	ModelsCollection;
    
    	public function Vistoria() {
      		super(LABEL);
    	}
  	}
}
